package creational.abstract_factory.impl;

import creational.abstract_factory.AbstractFactory;
import creational.abstract_factory.ProductFamilyA;
import creational.abstract_factory.ProductFamilyB;

public class ShanghaiFactory extends AbstractFactory {

    public ShanghaiFactory() {
        super("上海生产基地");
    }

    @Override
    public ProductFamilyA createFamilyA() {
        return new Polo();
    }

    @Override
    public ProductFamilyB createFamilyB() {
        return new Passat();
    }
}
